package com.funny.stock.trade.controller;

import com.funny.stock.base.util.ResultUtil;
import com.funny.stock.base.vo.Result;
import com.funny.stock.trade.service.StockMsgNotifyService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pengl
 * @date 2020/11/27
 */
@RestController
@RequestMapping("/message")
public class MessageController {

    @Autowired
    StockMsgNotifyService msgNotifyService;

    @GetMapping("/test")
    public Result test(){
        msgNotifyService.onNotifyRobotMsg("test\ntest");

        return ResultUtil.success(null);
    }
}
